package fields;

import javax.swing.*;
import java.awt.*;

public class DesktopStarter extends JFrame {

    public DesktopStarter() throws HeadlessException {
        super("new fields");
        getContentPane().setLayout(new GridLayout(1, 1));
        getContentPane().add(new Painter());
        pack();
        setLocationRelativeTo(null);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setVisible(true);
    }


    public static void main(String[] args) {
        new DesktopStarter();
    }
}
